﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

using ExpressionType = System.Linq.Expressions.ExpressionType;

namespace Kenly.DBFramework.Extension
{
    /// <summary>
    /// 
    /// </summary>
    public class WhereClause<T>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="predicate"></param>
        /// <returns></returns>
        public static void Equal(Func<T,bool> predicate)
        {
           var parameters= predicate.Method.GetParameters();
            //LambdaExpression expression=LambdaExpression.Equal(predicate.
            //if (!(expression.Body is BinaryExpression))
            //{
            //    return;
            //}

            //List<int> entities = new List<int>();

            //BinaryExpression binaryExpression = (BinaryExpression)expression.Body;
            //binaryExpression.
        }
    }
}
